package com.dh.project.service.impl;

import com.baomidou.framework.service.impl.SuperServiceImpl;
import com.dh.project.mapper.CustomerIdeaMapper;
import com.dh.project.model.CustomerIdea;
import com.dh.project.model.PageModel;
import com.dh.project.service.CustomerIdeaService;
import com.dh.project.view.CustomerIdeaListView;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by admin on 2017/6/7.
 */
@Service
public class CustomerIdeaServiceImpl extends SuperServiceImpl<CustomerIdeaMapper,CustomerIdea> implements CustomerIdeaService {

    @Autowired
    private CustomerIdeaMapper customerIdeaMapper;

    @Override
    public List<CustomerIdeaListView> selectCustomerIdeaListByMap(Map map) {
        return customerIdeaMapper.selectCustomerIdeaListByMap(map);
    }

    @Override
    public PageModel selectCustomerIdeaListByMapCount(Map map) {
       return customerIdeaMapper.selectCustomerIdeaListByMapCount(map);
    }
}
